<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue.js</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <link rel="stylesheet" href="style.css">
</head>
<body>
<div id="vue-app">
    <h1>双向数据绑定  /input  /select  /textarea</h1>
    <label>姓名:</label>
    <!--model绑定-->
    <input type="text"  v-model="name">
    <span>{{name }}</span>
    <label>年龄</label>
    <!--ref绑定-->
    <input type="text" ref="age" v-on:keyup="logAge">
    <span>{{age}}</span>
</div>
<script src="app.js"></script>
</body>

</html>